package com.database.bean;

import javax.persistence.AttributeOverride;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;

@Entity
@Table(name="REPORT")
@AttributeOverride( name="id", column = @Column(name="id") )
@XmlRootElement
public class Report extends BaseBean{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@Column(name="reportTypeName")
	private String reportTypeName=null;
	
	@Column(name="reportType")
	private Integer reportType=null;
	
	@Column(name="reportLongText")
	private String reportLongText=null;
	
	@Column(name="reportPrice")
	private Double reportPrice=null;
	
	@Column(name="spying", columnDefinition = "BIT", length = 1)
	private boolean spying;
	
	public Report(){}
	
	

	/**
	 * @return the reportTypeName
	 */
	public String getReportTypeName() {
		return reportTypeName;
	}

	/**
	 * @param reportTypeName the reportTypeName to set
	 */
	public void setReportTypeName(String reportTypeName) {
		this.reportTypeName = reportTypeName;
	}

	/**
	 * @return the reportPrice
	 */
	public Double getReportPrice() {
		return reportPrice;
	}

	/**
	 * @param reportPrice the reportPrice to set
	 */
	public void setReportPrice(Double reportPrice) {
		this.reportPrice = reportPrice;
	}

	/**
	 * @return the reportLongText
	 */
	public String getReportLongText() {
		return reportLongText;
	}

	/**
	 * @param reportLongText the reportLongText to set
	 */
	public void setReportLongText(String reportLongText) {
		this.reportLongText = reportLongText;
	}

	/**
	 * @return the spying
	 */
	public boolean isSpying() {
		return spying;
	}

	/**
	 * @param spying the spying to set
	 */
	public void setSpying(boolean spying) {
		this.spying = spying;
	}

	/**
	 * @return the reportType
	 */
	public Integer getReportType() {
		return reportType;
	}

	/**
	 * @param reportType the reportType to set
	 */
	public void setReportType(Integer reportType) {
		this.reportType = reportType;
	}

	/**
	 * @return the reportDecisions
	 *
	public Set<ReportDecision> getReportDecisions() {
		return reportDecisions;
	}

	**
	 * @param reportDecisions the reportDecisions to set
	 *
	public void setReportDecisions(Set<ReportDecision> reportDecisions) {
		this.reportDecisions = reportDecisions;
	}
	*/
	
	@Override
	public String toString() {
		return "Report [reportTypeName=" + reportTypeName + ", reportType="
				+ reportType + ", reportLongText=" + reportLongText
				+ ", reportPrice=" + reportPrice + ", spying=" + spying
				+ ", reportDecisions=" + "reportDecisions" + "]";
	}
	
}
